<div class="title">
  <h1>Listing deliveries</h1>
</div>

<div class="content">

<table>
  <tr>
    <th>Lieferant</th>
    <th>Empfänger</th>
    <th>Zeitpunkt</th>
    <th>Essenzen</th>
    <th>Kristalle</th>
    <th>Kraftsteine</th>
    <th>Goldharz</th>
  </tr>

  <% for delivery in @deliveries %>
    <tr>
      <td><%=h Player.find(delivery.lieferant_id) %></td>
      <td><%=h Player.find(delivery.empfaenger_id) %></td>
      <td><%=h delivery.zeitpunkt %></td>
      <td><%=h delivery.essenzen %></td>
      <td><%=h delivery.kristalle %></td>
      <td><%=h delivery.kraftsteine %></td>
      <td><%=h delivery.goldharz %></td>
      <td><%= link_to 'Show', player_delivery_path(@player, delivery) %></td>
      <td><%= link_to 'Edit', edit_player_delivery_path(@player, delivery) %></td>
      <td><%= link_to 'Destroy', player_delivery_path(@player, delivery), :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

</div>

<div class="navigation">
  <p>
    <%= link_to 'New delivery', new_player_delivery_path(@player) %>
  </p>
  <p>
    <%= link_to 'Back', @player %>
  </p>
</div>
